<template>
    <div class="app_group_index" v-if="group!=null && user!=null">
        <div id="top">
            <div class="avatar">
                <img v-if="user.avatar" :src="resurl+user.avatar+'?x-oss-process=image/resize,m_fill,w_240,h_240'" alt="">
            </div>
            <div class="name">{{group.name}}-{{group.code}}</div>
            <div class="level">等级:{{group.leval_name}}</div>
            <div class="up_name">推荐人:{{group.up_name}}</div>
        </div>

        <div class="box">
            <div class="item">
                <div class="number">{{group.integral}}</div>
                <div class="name">积分</div>
            </div>
            <div class="item">
                <div class="number">{{group.money}}</div>
                <div class="name">佣金</div>
            </div>
        </div>
        <div class='op-list'>
            <router-link to="/pages/group/edit" class="btn"><i class="iconfont icon-bianji"></i><span>编辑资料</span></router-link>
            <router-link to="/pages/group/member" class="btn"><i class="iconfont icon-chengyuan"></i><span>微群成员</span><div class="number">{{group.user_number}}</div></router-link>
            <router-link to="/pages/group/nextgroup" class="btn"><i class="iconfont icon-application-for-membership"></i><span>下级群主</span><div class="number">{{group.next_number}}</div></router-link>
            <router-link to="/pages/group/extension" class="btn"><i class="iconfont icon-fenxiang"></i><span>推广海报</span></router-link>
            <a :href="'/pages/home/index?group_code='+group.code" class="btn"><i class="iconfont icon-quanzi"></i><span>我要推荐</span></a>
            <router-link to="/pages/group_go/list" class="btn"><i class="iconfont icon-shangjialiebiaoicon"></i><span>我是商家</span></router-link>
        </div>
    </div>

</template>

<script src="./main.js"></script>

<style lang="less" src="./main.less" scoped></style>
